import request from '@/utils/request'

// 查询获取 scheme 码列表
export function listScheme(query) {
  return request({
    url: '/module/scheme/list',
    method: 'get',
    params: query
  })
}

// 查询获取 scheme 码详细
export function getScheme(id) {
  return request({
    url: '/module/scheme/' + id,
    method: 'get'
  })
}

// 新增获取 scheme 码
export function addScheme(data) {
  return request({
    url: '/module/scheme',
    method: 'post',
    data: data
  })
}

// 修改获取 scheme 码
export function updateScheme(data) {
  return request({
    url: '/module/scheme',
    method: 'put',
    data: data
  })
}


// 修改获取 scheme 码
export function settingScheme(data) {
  return request({
    url: '/module/scheme/settingScheme',
    method: 'post',
    data: data
  })
}


// 删除获取 scheme 码
export function delScheme(id) {
  return request({
    url: '/module/scheme/' + id,
    method: 'delete'
  })
}

// 导出获取 scheme 码
export function exportScheme(query) {
  return request({
    url: '/module/scheme/export',
    method: 'get',
    params: query
  })
}
